#pragma once

//! A generic list control class which provides some useful helper functions.
class ColligereListCtrl : public wxListCtrl
{
public:
	ColligereListCtrl ( wxWindow *pParent, wxWindowID id, 
		const wxPoint &rPos = wxDefaultPosition, 
		const wxSize &rSize = wxDefaultSize, 
		long style = wxLC_SINGLE_SEL | wxLC_REPORT, 
		const wxValidator &rValidator = wxDefaultValidator, 
		const wxString &rName = wxListCtrlNameStr );

	const wxString GetColumnText ( long indx, long column ) const;
	long GetSelectedItem() const;

	void SelectItem ( long indx );
	void UnselectActiveItem();
	void SetColumnText ( long indx, long column, const wxString &rText );
private:
	ColligereListCtrl();
// public:
	DECLARE_DYNAMIC_CLASS ( ColligereListCtrl );
};
